<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>循环控制- do-while循环</title>
</head>
<body>
<script>
    for(var i=0;i<10;i++){
        if(i==6){
            break;
        }
        println(i);
    }

    function println(a){
        document.write(a);
        document.write('<br/>');
    }
</script>
</body>
</html>